 /**
 * 
 */
package cn.edu.bjtu.textprocess.core;

import java.io.File;
import java.io.IOException;
import java.io.InputStream;

import org.apache.commons.io.FileUtils;

import cn.edu.bjtu.textprocess.api.W2VModeReader;

/**
 * @author alex
 *
 */
class W2vModelReader implements W2VModeReader{

	@Override
	public File getW2vFile() throws Exception{
		File temp = null;
			temp = File.createTempFile("word2vec", "wordembedding");
			temp.deleteOnExit();
			InputStream in = this.getClass().getClassLoader().getResourceAsStream("model/fdModel_100.txt");
			FileUtils.copyInputStreamToFile(in, temp);
		
		return temp;
	}

}
